package com.itheima.youdianda.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.youdianda.entity.SysRoleMenu;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

/**
 * 角色-菜单 Mapper 接口
 */
@Mapper
public interface SysRoleMenuMapper extends BaseMapper<SysRoleMenu> {
    @Insert("insert into sys_role_menu (role_id, menu_id) VALUES (#{roleId},#{menuId})")
    void saveRoleMenu(SysRoleMenu sysRoleMenu);
}
